package com.inspur.his.service.impl;

import com.inspur.his.mapper.MemberMapper;
import com.inspur.his.pojo.Member;
import com.inspur.his.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service("memberService")
public class MemberServiceimpl implements MemberService {

    @Autowired
    private MemberMapper memberMapper;

    public void setMemberMapper(MemberMapper memberMapper) {
        this.memberMapper = memberMapper;
    }

    //条件查询+分页
    @Override
    public List<Member> memberInList(HashMap map) {
        return memberMapper.memberInList(map);
    }
    //添加病人
    @Override
    public void save(Member member) {
        memberMapper.save(member);
    }

    @Override
    public Member findById(Member member) {
        return memberMapper.findById(member);
    }

    @Override
    public void updateMember(Member member) {
        memberMapper.updateMember(member);
    }

    @Override
    public void memberDetailUpdate(Member member) {
        memberMapper.memberDetailUpdate(member);
    }

    @Override
    public void Memberupdate(Member member) {
        memberMapper.MemberUpdate(member);
    }

    @Override
    public List<Member> memberOutList(HashMap map) {
        return memberMapper.memberOutList(map);
    }



    @Override
    public void memberOut(Member member) {

    }

    @Override
    public List<String> memberSearch() {
        return memberMapper.memberSearch();
    }


}
